package com.sgl.retrofitdemo.net.exception;

/**
 * Created by sunqiyong on 2016/11/13.
 */

public class ResponseException extends Exception {
    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ResponseException(final String message) {
        super(message);
    }

    public ResponseException(final int code, final String message) {
        super(message);
        this.code = code;
    }
}
